package Beans;

import BO.Service;
import ws.*;
import java.io.Serializable;
import java.util.*;



public class viewUserBean implements Serializable{

    private UserUI selected;
    private List<StatusUI> statusUpdates; 
    private List<InterestUI> interests;
    
    public viewUserBean() {
        statusUpdates = new ArrayList<StatusUI>();
    }

    public UserUI getSelected() {
        return selected;
    }

    public void setSelected(UserUI selected) {
        this.selected = selected;
    }

    public List<StatusUI> getStatusUpdates() {
        if(selected != null){
            return Service.getStatusUpdates(selected.getId());
        }
        return new ArrayList<StatusUI>();
    }

    public void setStatusUpdates(List<StatusUI> statusUpdates) {
        this.statusUpdates = statusUpdates;
    }

    public List<InterestUI> getInterests() {
        interests = Service.getUserInterests(selected.getId());
        return interests;
    }

    public void setInterests(List<InterestUI> interests) {
        this.interests = interests;
    }

}
